package com.example.a2209_mianshi.ui.login

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
import androidx.navigation.NavController
import androidx.navigation.Navigation
import com.example.a2209_mianshi.R
import com.example.a2209_mianshi.base.BaseFragment
import com.example.a2209_mianshi.databinding.FragmentAccountLoginBinding


class AccountLoginFragment : BaseFragment<LoginViewModel, FragmentAccountLoginBinding>() {
    override val mLayoutResId: Int
        get() = R.layout.fragment_account_login
    private val mViewModel:LoginViewModel by activityViewModels()
    private lateinit var mNavController: NavController
    private var mLoginAgreement: Boolean = false
    override fun initView() {
        mViewModel.setShowingFragmentTag(AccountLoginFragment::class.simpleName!!)
        mNavController = Navigation.findNavController(mBinding.root)
    }
    override fun initData() {
        mBinding.viewModel = mViewModel
        mViewModel.clearPassword()
    }
}